home *** CD-ROM | disk | FTP | other *** search
Text File | 1988-03-07 | 470 b | 15 lines | [TEXT/EDIT] |
- INCLUDE 'traps.a'
- ghost MAIN
- MOVE.W #0,-(SP) ; the context data (_launch parameter)
- MOVE.L #'STR ',-(SP) ; 1st parameter of GetResource
- MOVE.W #1000,-(SP) ; 2nd parameter of GetResource
- _GetResource ; handle to string in (SP)
- TST.L (SP) ; test if null handle (no resource available)
- BEQ.B exit ; if null, go to exit
- MOVE.L (SP),A0
- MOVE.L (A0),(SP) ; handle dereferenced
- MOVE.L SP,A0 ; stack pointer in A0
- _Launch
- exit _ExitToShell
- END
-